New Functions in Week 8

spread

{tidyr}

Spread a key-value pair across multiple columns

separate

{dplyr}

Separate a character column into multiple columns

as.numeric

{base}

Coerce a vector to numeric

n

{dplyr}

The number of observations in the current group.

as.character

{base}

Coerce a vector to character

read_dta

{haven}

Read a .dta file (Stata data)

save

{base}

Writes an external representation of R objects to the specified file.

is.na

{base}

Check if a value is NA/elements of vector are NA

colnames

{base}

Retrieve column names of a data frame

write.csv

{utils}

write a csv file to a data frame

The end!